package javatest3.ForWhileTest.test1;

public class method2 {
    public static void main(String[] args) {
        int sum=2,i=1;
        while (i<=100){
            sum+=i;
            i+=2;

        }
        System.out.println("sum = " + sum);
    }
}
